package cn.ckx.coding.moudle.system.entity;

import cn.ckx.coding.common.dto.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author kunxin.cai
 * @className SystemPermission
 * @description 功能权限
 * @date 2023/4/12
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("system_permission")
public class SystemPermission extends BaseEntity {

    /**
     * 	`id` BIGINT(11) NOT NULL AUTO_INCREMENT COMMENT '菜单ID' primary key,
     * 	`name` VARCHAR(32) NOT NULL COMMENT '菜单名称',
     * 	`permission` VARCHAR(32) NULL DEFAULT NULL COMMENT '菜单权限标识',
     * 	`path` VARCHAR(128) NULL DEFAULT NULL COMMENT '前端URL',
     * 	`url` VARCHAR(128) NULL DEFAULT NULL COMMENT '请求链接',
     * 	`method` VARCHAR(32) NULL DEFAULT NULL COMMENT '请求方法',
     * 	`pid` INT(11) NULL DEFAULT NULL COMMENT '父菜单ID',
     * 	`icon` VARCHAR(32) NULL DEFAULT NULL COMMENT '图标',
     * 	`component` VARCHAR(64) NULL DEFAULT NULL COMMENT '组件',
     * 	`sorted` INT(11) NULL DEFAULT '1' COMMENT '排序值',
     * 	`type` INT(5) NULL DEFAULT '0' COMMENT '菜单类型 （0菜单 1按钮）',
     */

    private String name;

    private String permission;

    private String path;

    private String method;

    private String pid;

    private String icon;

    private String component;

    private Integer sorted;

    private String type;

    @TableLogic
    private int enabledFlag;


}
